package module.dao;

import common.annotation.DaoSql;
import common.annotation.QueryDao;
import common.bean.SearchParameter;
import common.dao.BaseDao;
import module.model.SysTreeModel;

import java.util.List;

@QueryDao
public interface SysTreeDao extends BaseDao<Long,SysTreeModel> {
    @DaoSql(sql="SELECT * FROM sys_tree WHERE 1=1 { and tree_parent_id=:parentId } order by tree_id asc",resultType = "List[SysTreeModelMapping]")
    List<SysTreeModel> getSysTreeModelListBySearchParameter(SearchParameter searchParameter);
}
